﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<AutomationHost.ViewModels.RunListPage>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Test Run
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div>
        <a href="/Run/Home">Run a test plan</a> | <a href="/Run/Home/List">View Running</a></div>
    <h5>Running Test Plans</h5>
<table width="100%">
<tr>
<th>Test Plan</th>
<th>Run Time</th>
<th>Device Platform</th>
<th>Device IP</th>
<th>Executor</th>
<th>State</th>
<th>Operation</th>
</tr>
<%foreach(var a in Model.TestRuns){ %>
<tr>
<td><%=a.TestPlanModel.Name%></td>
<td><%=a.RunTime.ToString() %></td>
<td><%=a.Device.OS %> <%=a.Device.OSVersion%></td>
<td><%=a.Device.IP %></td>
<td><%=a.Executor %></td>
<td><%=a.State %></td>
<td><a href="/Run/Home/Rerun?id=<%=a.ID %>">Rerun</a></td>
</tr>
<%} %>
</table>
</asp:Content>
